package com.tgpms.interfaces.dto;

import com.tgpms.common.Result;

/**
 * Created By Riven on 2020-10-14
 */
public interface PortalInterface {

    /**
     * 获取token地址
     * @param clientId
     * @param clientSecret
     * @param code
     * @param grantType
     * @return Result
     */
    Result parsingOaToken(String clientId, String clientSecret, String code, String grantType);

    /**
     * 获取用户信息
     * @param accessToken
     * @param clientId
     * @param uid
     * @return Result
     */
    Result getUserInfo(String accessToken, String clientId, String uid);

}
